package com.dmgn.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class ChangeFileName {

	public String changeFileName(String fileName)
	{
        int index = fileName.lastIndexOf(".");
        String extendName = fileName.substring(index).toLowerCase();
        SimpleDateFormat df = new SimpleDateFormat("yyyyMMddHHmmss");
        String newFileName = df.format(new Date());
        newFileName = newFileName + extendName;
        return newFileName;
	}
}
